WooCommerce\Square\Plugin C

Total Complexity 107
Dependencies 22
Dependents 21
Total lines 1,006
Lines of code 429
Logical lines of code 164
Comment lines 356
Methods 40
Properties 12

Methods 40

Method Rating Maintainability Complexity Lines of code
add_admin_notices()
A
37 11 86
register_payment_tokens_migration_scheduler()
A
44 8 46
add_tax_inclusive_pricing_notice()
A
54 9 19
add_currency_admin_notices()
S
52 7 24
add_missing_refresh_token_notice()
S
51 6 30
init_plugin()
S
59 4 14
add_base_location_admin_notice()
S
51 3 28
locate_template()
S
65 4 9
is_plugin_settings()
S
75 4 3
is_gateway_settings()
S
75 4 3
__construct()
S
49 1 33
unschedule_order_sync()
S
72 3 5
log_api_request()
S
72 3 5
log()
S
73 3 5
get_idempotency_key()
S
68 3 6
get_api()
S
66 3 9
schedule_token_migration_job()
S
63 3 10
includes()
S
61 2 12
add_api_request_logging()
S
72 2 5
get_square_onboarding_url()
S
65 2 9
get_reviews_url()
S
78 2 3
instance()
S
71 2 6
init_lifecycle_handler()
S
80 1 3
init_taxonomies()
S
82 1 3
get_connection_handler()
S
82 1 3
get_sync_handler()
S
82 1 3
get_background_job_handler()
S
82 1 3
get_settings_handler()
S
82 1 3
get_admin_handler()
S
75 1 4
get_email_handler()
S
82 1 3
get_order_handler()
S
82 1 3
get_products_handler()
S
82 1 3
get_async_request_handler()
S
82 1 3
get_order_sync_handler()
S
82 1 3
get_plugin_name()
S
79 1 3
get_settings_url()
S
68 1 7
get_sales_page_url()
S
82 1 3
get_documentation_url()
S
82 1 3
get_support_url()
S
82 1 3
get_file()
S
82 1 3